<div class="row">
	<div class="col-md-12">
		<div class="box-body  no-padding">
			<form id="editForm" class="form-horizontal">
				<div class="form-group">
					<label id="sysResourceNameLabel" for="sysResourceName" class="col-sm-2 control-label">名称</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" name="name"  id="sysResourceName"  value="${sysResource.name}" placeholder="输入名称...">
					</div>
					<label id="sysResourceCodeLabel" for="sysResourceCode" class="col-sm-1 control-label" >编码</label>
					<div class="col-sm-4">
						<input type="text" class="form-control" name="code" id="sysResourceCode" value="${sysResource.code}" placeholder="输入编码...">
					</div>
				</div>
				<div class="form-group">
					<label id="sysResourceSortOrderLabel" for="sysResourceSortOrder" class="col-sm-2  control-label">排序</label>
					<div class="col-sm-4">
						<input class="form-control" name="sortOrder" id="sysResourceSortOrder" type="number" value="${sysResource.sortOrder}" placeholder="输入排序号...">
					</div>
					<label id="sysResourceStatusLabel" for="sysResourceStatus" class="col-sm-1  control-label">状态</label>
					<div class="col-sm-4">
						<select class="form-control" id="sysResourceStatus"  name="status"  value="${sysResource.status}" style="width: 100%;" placeholder="选择状态...">
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="sysResourceTypeLabel" for="sysResourceType" class="col-sm-2  control-label">类型</label>
					<div class="col-sm-9">
						<select class="form-control" id="sysResourceType" name="type"  value="${sysResource.type}" style="width: 100%;"  placeholder="选择字典类型...">
						</select>
					</div>
				</div>
				<div class="form-group">
					<label id="sysResourceDescriptionLabel" class="col-sm-2 control-label" >描述</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="description" id="sysResourceDescription"  value="${sysResource.description}" placeholder="输入描述...">
					</div>
				</div>
				<div class="form-group">
					<label id="sysResourceRemarkLabel" class="col-sm-2 control-label">备注</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="sysResourceRemark"  value="${sysResource.remark}" placeholder="输入备注...">
					</div>
				</div>
				<div class="form-group">
					<label id="sysResource-createdTime-label" class="col-sm-2 control-label">创建时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="sysResource-createdTime"  value="${(sysResource.createdTime?string('yyyy-MM-dd HH:mm:ss'))!}" placeholder="输入备注...">
					</div>
				</div>
				<div class="form-group">
					<label id="sysResource-modifiedTime-label" class="col-sm-2 control-label">更新时间：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" name="remark" id="sysResource-modifiedTime"  value="${(sysResource.modifiedTime?string('yyyy-MM-dd HH:mm:ss'))!}" placeholder="输入备注...">
					</div>
				</div>
			</form>
		</div>
		<div class="box-footer">
			<div class="pull-right">
				<button type="button" class="btn btn-default btn-sm" id="close" data-dismiss="modal"><i class="fa fa-close"></i>关闭</button>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$(function() {
		$("#sysResourceType").select2({
			data: ResourceTypeStore,
            language: "zh-CN",
            theme: "bootstrap"
		});
        $("#sysResourceType").select2('val','${sysResource.type}');


		$("#sysResourceStatus").select2({
			data: StatusStore,
			language: "zh-CN",
            theme: "bootstrap"
		});
        $("#sysResourceStatus").select2("val",'${sysResource.status}');
	});
</script>
